package openase.audiosearch.comm.request;

public enum RequestType {

	SEARCH(1),

	REGISTER(2);

	private byte id;

	private RequestType(int id) {
		this.id = (byte) id;
	}

	public byte getId() {
		return id;
	}

	public static RequestType getType(byte id) {
		for (RequestType type : values()) {
			if (id == type.id) {
				return type;
			}
		}
		return null;
	}
}
